﻿<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net"
         xmlns:db="http://www.springframework.net/database">
    <description>AOP配置</description>
    <!--拦截方法-->
    <object id="aroundAdvisor" type="Spring.Aop.Support.NameMatchMethodPointcutAdvisor, Spring.Aop">
        <property name="Advice">
            <object type="QzgfFrame.Mvc3.CommonSupport.LoggingAroundAdvice,QzgfFrame.Mvc3">
                <property name="currentUser" ref="currentUser"/>
            </object>
        </property>
        <property name="MappedNames">
            <list>
                <value>*FindByPage*</value>
                <!--
                <value>Edit*</value>
                -->
            </list>
        </property>
        <!--
         <property name="Expression" value="MethodInfo.ReturnType == T(System.Void) and Args == null" />
        -->
    </object>
    
    
    <!--拦截控制器-->
    <object type="Spring.Aop.Framework.AutoProxy.ObjectNameAutoProxyCreator, Spring.Aop">
        <property name="ObjectNames">
            <list>
                <value>XXX</value>
                <!--
                <value>*Facade</value>
                <value>*Controller</value>
                -->
            </list>
        </property>
        <property name="InterceptorNames">
            <list>
                <value>aroundAdvisor</value>
            </list>
        </property>
    </object>
</objects>